package com.alkin.thing.common.utils;

import com.alkin.thing.common.utils.spring.SpringUtils;
import com.alkin.thing.framework.security.LoginUser;
import com.alkin.thing.framework.security.service.TokenService;

public class ContextUtils {

    public static LoginUser getLoginUser() {
        return SpringUtils.getBean(TokenService.class).getLoginUser(ServletUtils.getRequest());
    }

}
